----------- 
-- Author: Bojun Chen
-- Date: 2021.08.17 14:08
-- Desc: Lua端的配置
----------- 

local LuaConfig = {}

-- debug配置
LuaConfig.DebugConfig = {
    IsDebug = true,
    IsRelease = false
}


-- UI配置
LuaConfig.UIConfig = {}
-- UI层级配置
LuaConfig.UIConfig.LayerEnum = {
    Base = 'Base',
    Pop = 'Pop',
    Guide = 'Guide'
}
LuaConfig.UIConfig.Layer = {
    [LuaConfig.UIConfig.LayerEnum.Base] = 1,       -- 1~500 层为基础层
    [LuaConfig.UIConfig.LayerEnum.Pop] = 501,      -- 501~800 层为弹出层
    [LuaConfig.UIConfig.LayerEnum.Guide] = 800,    -- 808~999 层为新手指引层
}

-- UI缓存配置
LuaConfig.UIConfig.CacheTimeEnum = {
    Cache0   = 'Once',
    Cache1   = 'OneMinute',
    Cache10  = 'TenMinute',
    Cache60  = 'Hour',
    CacheMax = 'Always'
}

LuaConfig.UIConfig.CacheTime = {
    Once        = 1,      -- 打开一次，关闭后就卸载
    OneMinute   = 60,     -- 打开后，1分钟后卸载
    TenMinute   = 600,    -- 打开后，10分钟后卸载
    Hour        = 3600,   -- 打开后，1小时候卸载
    Always      = -1      -- 一直缓存，切换场景时卸载
}

-- 网络配置
LuaConfig.NetConfig = {}


return LuaConfig